//
//  FingerChineseAppDelegate.h
//  FingerChinese
//
//  Created by luar on 20/01/2010.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FingerChineseViewController, FlashCardViewController, ContentViewController, Content;

@interface FingerChineseAppDelegate : NSObject <UIApplicationDelegate, UINavigationControllerDelegate> {
    UIWindow *window;
    UINavigationController *navView;
	ContentViewController *contentViewController;
	FingerChineseViewController *fingerViewController;
	FlashCardViewController *flashViewController;
	Content *curContent;
	BOOL isNavBarShow;
	BOOL isNavBarFading;
	BOOL isParsingFingerNode;
	BOOL isParsingFlashNode;
	int fingerPageNo;
	int flashPageNo;
	NSMutableString *nodeValue;
}

- (void)calculateHeightForContent;
- (int)calculateHeightOfTextFromWidth:(int)fontSize textSize:(CGSize)textSize str:(NSString *)str;
- (void)parseDone;

@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UINavigationController *navView;
@property (nonatomic, retain) ContentViewController *contentViewController;
@property (nonatomic, retain) FingerChineseViewController *fingerViewController;
@property (nonatomic, retain) FlashCardViewController *flashViewController;
@property (nonatomic, retain) Content *curContent;
@property (nonatomic, retain) NSMutableString *nodeValue;

@end

